home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re Japanese Font Menu.1 < prev    next >
Encoding:
Internet Message Format  |  1996-08-20  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Japanese Font Menu
  2. Sent:        8/19/96 5:20 PM
  3. Received:    8/19/96 5:35 PM
  4. From:        Shinji Shimizu, shimizu@kyoto.screen.co.jp
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>I tried to make 'Font'('Typeface') menu.
  9. >>Below is a way that you taught me.
  10. >>
  11. >>But when fontname is Japanese, it does not work well.
  12. >>Displaied menu chars are changed to English Script.
  13. >>
  14. >>Tell me how to make Japanese 'Font' menu.
  15. >>
  16. >>void AddFontsToMenu(Environment* ev, FW_CPullDownMenu* menu)
  17. >>{
  18. >>        short count = 0;
  19. >>        FW_CFontIterator fontIter;
  20. >>        FW_CString fontName;
  21. >>        ODCommandID commandID = cFirstFontCommand;
  22. >>        for (fontName = fontIter.First(); fontIter.IsNotComplete();
  23. >>fontName = fontIter.Next())
  24. >>        {
  25. >>                menu->AppendTextItem(ev, fontName, commandID+count);
  26. >>                count++;
  27. >>        }
  28. >>        gFontCount = count;
  29. >>}
  30. >
  31. >I don't know why this code doesn't work. The fontName passed to 
  32. >AppendTextItem should have its locale.fScriptCode = smJapanese. 
  33. >Eventually fontName is passed to FW_CTextItem::PrivInitTextItem. On a 
  34. >Japanese System does a Japanese menu item need to have a script code in 
  35. >the item icon field?
  36. >
  37. >Mary Boetcher
  38. >ODF Person
  39.  
  40.  
  41. I also don't why.But this code worked well with DR4 ODF on OpenDoc 1.0.4.
  42. I think this problem was made by DR5 ODF.
  43. Do you think so?
  44.  
  45. Once would you test Japanese 'Font' menu?
  46. =====================================
  47.                    Shinji Shimizu 
  48.        DAINIPPON SCREEN MFG. CO, LTD.                       
  49. Research and Development Department
  50.          Imageing Products Division           
  51.        E-mail:$B!!(Bshimizu@screen.co.jp                      
  52. =====================================
  53.  
  54.